import request from "@/utils/request";
export function listattendance(params) {
  return request({
    url: "/school/manager/attendance/list",
    method: "get",
    params: params,
  });
}
export function deleteTeacherAttendance(ids) {
  return request({
    url: `/school/teacher/attendance/deleteTeacherAttendance/${ids}`,
    method: "delete",
  });
}
// 获取排课下所有考勤学生列表
export function attendanceStudentListByCourseScheduling(params,courseSchedulingId) {
  return request({
    url: `/school/teacher/attendance/attendanceStudentListByCourseScheduling/${courseSchedulingId}`,
    method: "get",
    params: params,
  });
}
// 获取考勤学生列表
export function attendanceStudentList(params) {
  return request({
    url: "/school/teacher/attendance/attendanceStudentList",
    method: "get",
    params: params,
  });
}
//创建考勤
export function addAttendance(data) {
  return request({
    url: "/school/teacher/attendance/add",
    method: "post",
    data:data
  });
}
//手动考勤
export function recordAttendance(data) {
  return request({
    url: "/school/teacher/attendance/recordAttendance",
    method: "post",
    data:data
  });
}


